<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>个人信息修改页面</title>
    <link rel="stylesheet" href="css/index.css">

    <!-- Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">

    <script src="https://cdn.jsdelivr.net/npm/wangeditor@latest/dist/wangEditor.min.js"></script>


    <style>
        body {
            background-color: #ffe0e4;
            color: white;

        }

        .row h1 {
            color: white;
        }

        .control-label {
            color: pink;
        }

        #heading {
            background-color: white;
            color: pink;
        }

        .panel-default {
            border-color: pink;
        }

        input[type='checkbox'] {
            position: relative;
            top: 7px;
            left: -10px;
        }
        .col-md-10 {
            width: 62.333333%;
        }
        .page .content-page{
            top: 0;
        }
    </style>

</head>
<body>

<header>
    <div class="container">
        <div class="row">
            <div class="col-md-offset-2 col-md-8">
                <h1>
                    <b>个人信息修改</b>
                </h1>
            </div>
        </div>
    </div>
</header>
<div class="container">
    <div class="row">
        <div class="col-md-offset-2 col-md-8">
            <div class="panel panel-default">
                <!--面板主体-->
                <div class="panel-body">
                    <!--修改表单-->
                    <form style="color: black" id="myform" class="form-horizontal" role="form"
                          action="loginaction" enctype="multipart/form-data">
                        <!--标题-->
                        <div class="form-group">
                            <label for="title" class="col-md-2 control-label"></label>
                            <div class="col-md-8">
                                <input type="text"
                                       class="form-control" id="title" name="title"
                                       placeholder="">
                            </div>
                        </div>
                        <!--头像-->
                        <div class="form-group">
                            <label for="author" class="col-md-2 control-label">选择头像</label>
                            <div class="col-md-8">
                                <div>
                                    <input type="file" name="picFile">
                                </div>
                            </div>
                        </div>
                        <!--用户名-->
                        <div class="form-group">
                            <label for="author" class="col-md-2 control-label">用户名</label>
                            <div class="col-md-8">
                                <input type="text"
                                       class="form-control" id="username" name="author"
                                       placeholder="请输入用户名">
                            </div>
                        </div>
                        <!--昵称-->
                        <div class="form-group">
                            <label for="author" class="col-md-2 control-label">昵称</label>
                            <div class="col-md-8">
                                <input type="text"
                                       class="form-control" id="nickname" name="author"
                                       placeholder="请设置昵称，字数为2-20之间"
                                       pattern="^.{2,20}$" required="required">
                            </div>
                        </div>
                        <!--原密码-->
                        <div class="form-group">
                            <label for="author" class="col-md-2 control-label">原密码</label>
                            <div class="col-md-8">
                                <input type="text"
                                       class="form-control" id="password" name="author"
                                       placeholder="请输入原密码">
                            </div>
                        </div>
                        <!--新密码-->
                        <div class="form-group">
                            <label for="author" class="col-md-2 control-label">新密码</label>
                            <div class="col-md-8">
                                <input type="text"
                                       class="form-control" id="newpassword" name="author"
                                       placeholder="设置新密码6-20个字母、数字、下划线"
                                       pattern="^.{6,20}$" required="required">
                            </div>
                        </div>
                        <!--性别-->
                        <div class="form-group">
                            <label for="author" class="col-md-2 control-label">性别</label>
                            <select name="" id="sex" name="author" style="padding: 5px 10px;margin-left: 15px">
                                <option value="man">男</option>
                                <option value="woman">女</option>
                            </select>
                        </div>
                        <!--生日日期-->
                        <div class="form-group">
                            <label for="author" class="col-md-2 control-label">生日日期</label>
                            <div class="col-md-8">
                                <input type="text"
                                       class="form-control" id="author" name="author"
                                       placeholder="请输入生日日期">
                            </div>
                        </div>
                        <!--电话-->
                        <div class="form-group">
                            <label for="author" class="col-md-2 control-label">电话</label>
                            <div class="col-md-8">
                                <input type="text"
                                       class="form-control" id="phone" name="author"
                                       placeholder="请输入电话"
                                       pattern="^.{11}$" required="required">
                            </div>
                        </div>

                        <!--发布按钮-->
                        <div class="col-md-offset-2 col-md-10" style="text-align: center">
                            <button type="button" class="btn btn-default sublogin"
                                    @click="upload()">发布作品</button>
                        </div>

                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<!--网页页脚-->
<footer>
    <div class="container">
        <div class="text-center">
            <a target="_blank" href="/index.html">迪迪巴士博客</a>
            版权所有
        </div>
    </div>
</footer>
</body>
<!--引入vue-->
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
<!--引入axios-->
<script src="https://cdn.bootcdn.net/ajax/libs/axios/0.21.1/axios.min.js"></script>
<script src="js/index_myhead.js"></script>
</html>